package com.example.springboot.document;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;


/**
 * ${comments}
 *
 * @author wansisheng
 * @email  wss003@wansisheng.com
 * @date 2019-03-29 20:01:22
 */
@Data
@Document(indexName = "res_sys_file")
public class ResFileDoc implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;
	//文件名称
	private String filename;
	//文件扩展名
	@Field(type = FieldType.Keyword)
	private String filesuffix;
	//文件内用
	private String content;
	private String path;


}
